import request from '@/utils/request'

// 获取角色权限数据的接口
// /admin/acl/permission/toAssign/{roleId} method: get
export const reqRoleAuth = (roleId) => request.get(`/admin/acl/permission/toAssign/${roleId}`)

// 获取给角色分配权限的接口
// /admin/acl/permission/doAssign  method: post
export const reqUpdateRoleAuth =(params) => {
    return request({
        url: '/admin/acl/permission/doAssign',
        method: 'post',
        params,
    })
}
